﻿<Window x:Class="CECB.Project.V_CreateNewProject_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="V_CreateNewProject_Window" 
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"      
        WindowStartupLocation="CenterScreen" 
        Loaded="Window_Loaded"  WindowStyle="SingleBorderWindow" Height="768" Width="1024" WindowState="Maximized" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">

    <Grid   Margin="0,0,0,0" Background="#FFF0F0F0">

        <StackPanel Height="56" HorizontalAlignment="Left" Margin="14,8,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="988">
            <Label Content="Create a New Project"    HorizontalAlignment="Left"  Height="46" VerticalAlignment="Top" Foreground="#FF3E3832" FontSize="21.333" Width="247" FontWeight="Medium"></Label>
            <StackPanel.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFCDCDCD" Offset="0" />
                    <GradientStop Color="#FFF0F0F0" Offset="1" />
                </LinearGradientBrush>
            </StackPanel.Background>
        </StackPanel>

        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,12,14,0">
            <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>
        <Canvas Height="645" HorizontalAlignment="Left" Margin="14,72,0,0" Name="canvas1" VerticalAlignment="Top" Width="988">
            <Grid>

                <GroupBox Canvas.Left="17" Canvas.Top="17" Header="Project Details" Height="610" Name="groupBox1" Width="519" Margin="0,0,-75,0" BorderBrush="#FF3E3832" BorderThickness="2">
                    <StackPanel Orientation="Vertical">
                        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="0,10,0,0">
                            <Label Content="Project Name" Height="28" Width="147" Name="label_projname" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <TextBox Name="textBox_projname" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="331" />
                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal"  Margin="0,10,0,0">
                            <Label Content="Project Catogory" Height="33" Width="147" Name="label_projCatogory" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <ComboBox Height="31" Name="comboBox_projCatogory" FontSize="16" Width="313" DisplayMemberPath="cat_name" SelectedValuePath="cat_reference" SelectionChanged="comboBox_projCatogory_SelectionChanged" DropDownOpened="comboBox_projCatogory_DropDownOpened" Background="#FFFFECA1" />
                            <Button Content=" " Height="30" Name="button_catAdd" Width="34" Click="button_catAdd_Click">
                                <Button.Background>
                                    <ImageBrush ImageSource="/CECB;component/images/New.png" />
                                </Button.Background>
                            </Button>
                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832"   Margin="0,10,0,0" Orientation="Horizontal"  >
                            <Label Content="Project Type" Width="147" Height="33" Name="label_projtype" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <ComboBox Height="32" Name="comboBox_projType" Width="313" FontSize="16" DisplayMemberPath="ptype_name" SelectedValuePath="ptype_reference" DropDownOpened="comboBox_projType_DropDownOpened" Background="#FFFFECA1"></ComboBox>
                            <Button Content="" Height="28" Name="button_projType_add" Width="34" Click="button_projType_add_Click">
                                <Button.Background>
                                    <ImageBrush ImageSource="/CECB;component/images/New.png" />
                                </Button.Background>
                            </Button>
                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Background="#FF3E3832"   Margin="0,10,0,0"  >
                            <Label Content="Approving Agency" Height="33" Width="146" Name="label_appAgency" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <TextBox Name="textBox_appAgency" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="332" />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Background="#FF3E3832"  Margin="0,10,0,0"  >
                            <Label Content="Consultent" Height="33" Width="147" Name="label_consultent" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <ComboBox Height="30" HorizontalAlignment="Left" Margin="0,0,0,0" Name="combobox_TeamLeader" VerticalAlignment="Top" Width="331" FontSize="14" Foreground="#FF4E0000" DisplayMemberPath="mem_name" SelectedValuePath="mem_reference"/>
                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal"  Background="#FF3E3832" Margin="0,10,0,0"  >
                            <Label Content="Client" Width="147" Height="33" Name="label_client" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <TextBox Name="textBox_client" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="331" />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Background="#FF3E3832"   Margin="0,10,0,0"  >
                            <Label Content="Location" Height="28" Width="146" Name="label_location" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <TextBox Height="33" Name="textBox_location" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="332" />
                            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
                        </WrapPanel>
                        <WrapPanel VerticalAlignment="Top" Margin="0,10,0,0" Background="#FF3E3832">
                            <Expander Header="More Location Details" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Name="expander_locationDetails"  IsEnabled="True"    Margin="0,0,0,0"  >
                                <Grid Height="258" Width="500">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="0*" />
                                        <ColumnDefinition Width="343*" />
                                        <ColumnDefinition Width="70*" />
                                    </Grid.ColumnDefinitions>
                                    
                                    <WrapPanel Orientation="Horizontal" Grid.ColumnSpan="3" Margin="0,39,-32,6">
                                        <TextBox Height="28" Name="textBox_longitude" Width="242" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" TextChanged="textBox_longitude_TextChanged" KeyDown="textBox_longitude_KeyDown" GotFocus="textBox_longitude_GotFocus" />
                                        <TextBox Height="28" Name="textBox_latitude" Width="258" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" TextChanged="textBox_latitude_TextChanged" KeyDown="textBox_latitude_KeyDown" GotFocus="textBox_latitude_GotFocus" />
                                        <Button  Margin="267,0,0,0" Content="Add" Height="23" Name="button_NewRecord" Width="233" Click="button_NewRecord_Click" />
                                        <ListView Canvas.Left="12" Canvas.Top="68" Name="listView1" Width="500"  SelectionMode="Single" Height="132" SelectionChanged="listView1_SelectionChanged" Background="#FFFFECA1">
                                            <ListView.View>
                                                <GridView>
                                                    <GridViewColumn Header="Longitude" Width="235" DisplayMemberBinding="{Binding  Loc_longitude}"></GridViewColumn>
                                                    <GridViewColumn Header="Latitude" Width="235" DisplayMemberBinding="{Binding Loc_latitude}"></GridViewColumn>
                                                </GridView>
                                            </ListView.View>
                                        </ListView>
                                    </WrapPanel>
                                    <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="0,4,-6,0" Height="34" Grid.ColumnSpan="2" Grid.Column="1">
                                        <WrapPanel Height="21" Name="wrapPanel5" Width="4" />
                                        <WrapPanel Height="34" Name="wrapPanel7" Width="32" />
                                        <Label Content="Longitude" Height="33" IsEnabled="True" Name="label1" Width="206" Foreground="White" />
                                        <Label Content="Latitude" Height="33" IsEnabled="True" Name="label2" Width="168" Foreground="White" />
                                    </WrapPanel>
                                    <Button Content="Remove" Name="button_RemoveRecord" Click="button_RemoveRecord_Click" Grid.Column="1" Grid.ColumnSpan="2" Margin="267,224,0,6" />
                                </Grid>
                            </Expander>
                        </WrapPanel>
                    </StackPanel>
                </GroupBox>


            </Grid>
            <GroupBox Header="" Name="groupBox2" Margin="464,89,30,447" Canvas.Left="73" Canvas.Top="-89" Height="180" Width="445" BorderBrush="#FF3E3832" BorderThickness="2">
                <Grid>
                    <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Height="165" Margin="0,0,0,0" Grid.RowSpan="2">
                        <WrapPanel Orientation="Horizontal" Canvas.Left="35" Background="#FF3E3832" Canvas.Top="324" Width="433">
                            <Label Content="Plan Image" Height="28" Width="111" Name="label_planImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
                            <Button Height="23"  Margin="264,0,0,0" Name="button_selectPlanImg" Width="29" Click="button_selectPlanImg_Click">
                                <Button.Background>
                                    <ImageBrush ImageSource="/CECB;component/images/image_add.png" />
                                </Button.Background>
                            </Button>
                        </WrapPanel>
                        <WrapPanel Background="#FFFFECA1">
                            <Image Height="133" Name="image_PlanImg" Stretch="Fill" Width="433" />
                        </WrapPanel>
                    </WrapPanel>
                </Grid>
            </GroupBox>
            <GroupBox Header="" Name="groupBox3" Canvas.Left="539" Canvas.Top="175" Height="195" Width="442" BorderBrush="#FF3E3832" BorderThickness="2">
                <Grid>
                    <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Height="172">
                        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="35" Canvas.Top="324" Width="433">
                            <Label Content="Model Image" Height="28" Width="111" Name="labelmodelImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
                            <Button Height="24" Margin="258,0,0,0" Name="button_selctModlImg" Width="31" Click="button_selctModlImg_Click">
                                <Button.Background>
                                    <ImageBrush ImageSource="/CECB;component/images/image_add.png" />
                                </Button.Background>
                            </Button>
                        </WrapPanel>
                        <WrapPanel Background="#FFFFECA1">
                            <Image Height="144" Name="image_modelImg" Stretch="Fill" Width="427" />
                        </WrapPanel>
                    </WrapPanel>

                </Grid>
            </GroupBox>

            

           
            <GroupBox Canvas.Left="539" Canvas.Top="366" Header="" Height="181" Name="groupBox4" Width="443" BorderBrush="#FF3E3832" BorderThickness="2">
                <Grid>
                    <WrapPanel Orientation="Vertical" Margin="0,0,0,0" Grid.Row="1"   Width="433">
                        <StackPanel Background="#FF3E3832" Width="439">
                            <Label Content="Other Details" Height="28" Width="347" Name="label_othDetails" HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                        </StackPanel>
                        <TextBox Name="tbMultiLine" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"  Grid.Row="1" Height="122" Width="432" Background="#FFFFECA1"></TextBox>
                    </WrapPanel>
                    <GroupBox Header="" Height="86" Name="groupBox5" Width="262" BorderBrush="#FF3E3832" BorderThickness="2" Margin="175,166,-6,-94">
                        <Grid Width="245">
                            <WrapPanel Name="wrapPanel6" Margin="10,6,0,0" Canvas.Left="107" Canvas.Top="175">
                                <Button Background="{x:Null}" BorderBrush="{x:Null}" Height="44" Margin="2,0" Name="NewButton" Width="98" Click="button_ClearAll_Click">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="*" />
                                        </Grid.ColumnDefinitions>
                                        <Image Grid.Column="0" Height="32" Margin="2" Source="images\New.png" Width="32" />
                                        <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                                            <TextBlock Margin="0" Padding="0" Text="New" TextWrapping="NoWrap" />
                                        </StackPanel>
                                    </Grid>
                                </Button>
                                <Button Background="{x:Null}" BorderBrush="{x:Null}" Click="button_save_Click" Height="44" Margin="2,0" Name="SaveButton" Width="98">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="*" />
                                        </Grid.ColumnDefinitions>
                                        <Image Grid.Column="0" Height="32" Margin="2" Source="images\save.png" Width="32" />
                                        <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                                            <TextBlock Margin="0" Padding="0" Text="Save" TextWrapping="NoWrap" />
                                        </StackPanel>
                                    </Grid>
                                </Button>
                            </WrapPanel>
                        </Grid>
                    </GroupBox>
                </Grid>
            </GroupBox>
        </Canvas>
        
    </Grid>
</Window>
